package com.aaa.ssm.service;

import com.aaa.ssm.entity.Patient;
import com.aaa.ssm.entity.SysUser;
import com.aaa.ssm.util.Page;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PatientService {
    Patient checkUser(@Param("userName")String userName, @Param("password")String password);
    PageInfo queryByPage(Page<Patient> page);

    List<Patient> queryByParam(Patient patient);
    Patient queryById(int id);
    int add(Patient patient);
    int update(Patient patient);
    int delete(int id);
}
